package com.test.reactor.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.data.redis.core.ValueOperations;


/**
 * @author wwmxd
 * @create 2018/3/22.
 */
@Configuration
public class RedisConfiguration {
    @Autowired
    StringRedisTemplate redisTemplate;
    @Bean
    public ValueOperations<String, String> reddisString() {
        return redisTemplate.opsForValue();
    }
}